package com.endbd.feignapi.api;

import com.endbd.feignapi.model.marketing.Orderdetails;
import com.endbd.feignapi.util.ResultMessage;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

@FeignClient("marketing-service")
public interface MarketingApi {

    @RequestMapping("/marketing/api/queryOrderDetails")
    @ResponseBody
    public List<Orderdetails> getOrderDetails(@RequestParam String orderId);

    @RequestMapping("/marketing/queryOrderForWarehouse")
    @ResponseBody
    public ResultMessage queryOrderForWarehouse();

    @RequestMapping("/marketing/api/updateOrderForWarehouse")
    @ResponseBody
    public ResultMessage updateOrderForWarehouse(@RequestParam String orderId, @RequestParam Integer warehouseId);
}
